package com.example.common.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author wxy
 * @Date 2021/1/19 18:54
 * @Version 1.0
 */
@Data
@Entity
@Table(name = "client_patients_info")
public class ClientPatientsInfo implements Serializable {
    private static final long serialVersionUID = -8388622102180422369L;

    @Id
    @Column(name = "pid_bigint", columnDefinition = "bigint(20)")
    private Long pid;
    @Column(name = "header_nvarchar", columnDefinition = "varchar(255)")
    private String header;
    @Column(name = "client_id_bigint", columnDefinition = "bigint(20)")
    private Long clientID;
    @Column(name = "name_nvarchar", columnDefinition = "varchar(255)")
    private String name;
    @Column(name = "sex_nvarchar", columnDefinition = "varchar(255)")
    private String sex;
    @Column(name = "birthday_date", columnDefinition = "datetime(3)")
    private Date birthday;
    @Column(name = "id_nO_nvarchar", columnDefinition = "varchar(255)")
    private String idNo;
    @Column(name = "nation_nvarchar", columnDefinition = "varchar(255)")
    private String nation;
    @Column(name = "phone_nvarchar", columnDefinition = "varchar(255)")
    private String phone;
    @Column(name = "relationship_nvarchar", columnDefinition = "varchar(255)")
    private String relationship;
    @Column(name = "guardian_name_nvarchar", columnDefinition = "varchar(255)")
    private String guardianName;
    @Column(name = "guardian_id_no_nvarchar", columnDefinition = "varchar(255)")
    private String guardianIDNO;
    @Column(name = "guardian_nation_nvarchar", columnDefinition = "varchar(255)")
    private String guardianNation;
    @Column(name = "default_bit", columnDefinition = "bit(1)")
    private Boolean defaultBit;
    @Column(name = "disable_bit", columnDefinition = "bit(1)")
    private Boolean disable;
    @Column(name = "pt_district_nvarchar", columnDefinition = "varchar(255)")
    private String ptDistrict;
}
